<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>  </title>
</head>
<body>
    <button onclick="show1()">提示框</button>
    <button onclick="show2()">确认框</button>
    <button onclick="show3()">输入框</button>
</body>
<script>
    function show3(){
        var name = prompt("您的姓名：");
        alert("欢迎"+name);
    }

    function show2(){
        if(confirm("您帅吗？") ) {
            alert("臭不要脸！")
        }else{
            alert("诚实的小孩儿！")
        }
    }

    function show1(){
        alert("这是一个提示框");
    }



</script>
</html>